$OpenBSD: patch-compiler_extccomp_nim,v 1.2 2014/05/08 01:05:50 jturner Exp $
--- compiler/extccomp.nim.orig	Mon Apr 21 20:02:51 2014
+++ compiler/extccomp.nim	Mon Apr 21 20:06:11 2014
@@ -16,7 +16,7 @@ import
 type 
   TSystemCC* = enum 
     ccNone, ccGcc, ccLLVM_Gcc, ccCLang, ccLcc, ccBcc, ccDmc, ccWcc, ccVcc, 
-    ccTcc, ccPcc, ccUcc, ccIcl
+    ccTcc, ccPcc, ccUcc, ccIcl, ccEGcc
   TInfoCCProp* = enum         # properties of the C compiler:
     hasSwitchRange,           # CC allows ranges in switch statements (GNU C)
     hasComputedGoto,          # CC has computed goto (GNU C extension)
@@ -84,6 +84,13 @@ compiler gcc:
     props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, hasGnuAsm,
             hasNakedAttribute})
 
+compiler egcc:
+  result = gcc()
+
+  result.name = "egcc"
+  result.compilerExe = "egcc"
+  result.cppCompiler = "eg++"
+
 compiler llvmGcc:
   result = gcc()
   
@@ -316,7 +323,8 @@ const 
     tcc(),
     pcc(),
     ucc(),
-    icl()]
+    icl(),
+    egcc()]
 
 const
   hExt* = ".h"
